package com.gmail.dmitryustimov.ms.java7.visitor.mod_actionmap.example.example2;

/**
 * Author: Dmitry Ustimov
 * Date: 5/11/13
 * Time: 1:43 PM
 */
public abstract class CarElementVisitor<T> extends Visitor<T> {

    public void visitCar(CarElement car, CarElementVisitor visitor) {
        for(CarElement elem : car.elements) {
            visitor.visit(elem);
        }
    }
}
